<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
    <!-- historical -->     
    <?php if($historical) { ?>
	    <?php foreach($historical as $history) { ?>
	    <url> 
	        <loc><?php echo Router::url('/en/matches/',true).$history["0"]["path"]; ?></loc>
			<xhtml:link rel="alternate" hreflang="en" href="<?php echo Router::url('/en/matches/',true).$history["0"]["path"]; ?>" /> 
			<xhtml:link rel="alternate" hreflang="it" href="<?php echo Router::url('/it/matches/',true).$history["0"]["path"]; ?>" />
	        <lastmod>2014-09-09</lastmod> 
	        <priority>0.8</priority> 
	    </url> 
	    <?php } ?> 
	<?php } else { ?>
	    <url> 
	        <loc><?php echo Router::url('/en/matches',true); ?></loc>
			<xhtml:link rel="alternate" hreflang="en" href="<?php echo Router::url('/en/matches',true); ?>" /> 
			<xhtml:link rel="alternate" hreflang="it" href="<?php echo Router::url('/it/matches',true); ?>" />
	        <lastmod>2014-09-09</lastmod> 
	        <priority>0.8</priority> 
	    </url> 
    <?php } ?> 
</urlset>